package com.yellowpage.omc.datacollect.data;

import java.math.BigDecimal;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * TestAccount entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TEST_ACCOUNT", schema = "WHITE2")
public class TestAccount implements java.io.Serializable {

	// Fields

	private BigDecimal id;
	private String name;
	private BigDecimal userid;
	private String accounttypecode;
	private String createtime;
	private String status;
	private String freezeexpiretime;
	private BigDecimal parentid;
	private String path;
	private String authstatus;

	// Constructors

	/** default constructor */
	public TestAccount() {
	}

	/** full constructor */
	public TestAccount(String name, BigDecimal userid, String accounttypecode,
			String createtime, String status, String freezeexpiretime,
			BigDecimal parentid, String path, String authstatus) {
		this.name = name;
		this.userid = userid;
		this.accounttypecode = accounttypecode;
		this.createtime = createtime;
		this.status = status;
		this.freezeexpiretime = freezeexpiretime;
		this.parentid = parentid;
		this.path = path;
		this.authstatus = authstatus;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "identity")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "ID", unique = true, nullable = false, precision = 38, scale = 0)
	public BigDecimal getId() {
		return this.id;
	}

	public void setId(BigDecimal id) {
		this.id = id;
	}

	@Column(name = "NAME", length = 50)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "USERID", precision = 38, scale = 0)
	public BigDecimal getUserid() {
		return this.userid;
	}

	public void setUserid(BigDecimal userid) {
		this.userid = userid;
	}

	@Column(name = "ACCOUNTTYPECODE", length = 2)
	public String getAccounttypecode() {
		return this.accounttypecode;
	}

	public void setAccounttypecode(String accounttypecode) {
		this.accounttypecode = accounttypecode;
	}

	@Column(name = "CREATETIME", length = 14)
	public String getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}

	@Column(name = "STATUS", length = 2)
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Column(name = "FREEZEEXPIRETIME", length = 16)
	public String getFreezeexpiretime() {
		return this.freezeexpiretime;
	}

	public void setFreezeexpiretime(String freezeexpiretime) {
		this.freezeexpiretime = freezeexpiretime;
	}

	@Column(name = "PARENTID", precision = 38, scale = 0)
	public BigDecimal getParentid() {
		return this.parentid;
	}

	public void setParentid(BigDecimal parentid) {
		this.parentid = parentid;
	}

	@Column(name = "PATH", length = 20)
	public String getPath() {
		return this.path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	@Column(name = "AUTHSTATUS", length = 2)
	public String getAuthstatus() {
		return this.authstatus;
	}

	public void setAuthstatus(String authstatus) {
		this.authstatus = authstatus;
	}

}